﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Windows.Forms;

namespace CheckingLine
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            var appName = Process.GetCurrentProcess().ProcessName;
            var apps = Process.GetProcessesByName(appName);
            if (apps.Length > 1)
            {
                MessageBox.Show("程序已经在运行，本程序实例即将退出。", "车牌识别");
                return;
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}
